package cn.org.intelli.zjgflink.aop;


public class AuthenticationTicket {
    private static final ThreadLocal<cn.org.intelli.zjgflink.aop.AuthenticationTicket> holder = new ThreadLocal<>();

    private String pin;

    public AuthenticationTicket(String pin) {
        this.pin = pin;
    }

    public static cn.org.intelli.zjgflink.aop.AuthenticationTicket getTicket() {
        return holder.get();
    }

    public static void setTicket(cn.org.intelli.zjgflink.aop.AuthenticationTicket ticket) {
        holder.set(ticket);
    }

    public static void remove() {
        holder.remove();
    }

    public String getPin() {
        return this.pin;
    }

    public void setPin(String pin) {
        this.pin = pin;
    }
}


